﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class SanPhamThuongDangBanTrenGianHangBUS
    {
        public static SanPhamThuongDangBanTrenGianHangDTO LaySanPhamThuongTheoID(int id)
        {
            return SanPhamThuongDangBanTrenGianHangDAO.LaySanPhamThuongTheoID(id);
        }

        public static SanPhamThuongDangBanTrenGianHangDTO LaySanPhamThuongTheoMaSanPham(int masanpham)
        {
            return SanPhamThuongDangBanTrenGianHangDAO.LaySanPhamThuongTheoMaSanPham(masanpham);
        }

        public static List<SanPhamThuongDangBanTrenGianHangDTO> LayDanhSachSanPhamThuongTheoMaSanPham(int masanpham)
        {
            return SanPhamThuongDangBanTrenGianHangDAO.LayDanhSachSanPhamThuongTheoMaSanPham(masanpham);
        }

        public static List<SanPhamThuongDangBanTrenGianHangDTO> LayDanhSachSanPhamThuongTheoMaGianHang(int magianhang)
        {
            return SanPhamThuongDangBanTrenGianHangDAO.LayDanhSachSanPhamThuongTheoMaGianHang(magianhang);
        }

        public static List<SanPhamThuongDangBanTrenGianHangDTO> LayDanhSachSanPhamThuongTheoTinhTrang(bool tinhtrang)
        {
            return SanPhamThuongDangBanTrenGianHangDAO.LayDanhSachSanPhamThuongTheoTinhTrang(tinhtrang);
        }

        public static bool ThemSanPhamThuong(SanPhamThuongDangBanTrenGianHangDTO sanphamthuongDTO)
        {
            return SanPhamThuongDangBanTrenGianHangDAO.ThemSanPhamThuong(sanphamthuongDTO);
        }

        public static bool XoaSanPhamThuongTheoID(int id)
        {
            return SanPhamThuongDangBanTrenGianHangDAO.XoaSanPhamThuongTheoID(id);
        }

        public static bool XoaDanhSachSanPhamThuongTheoMaGianHang(int magianhang)
        {
            return SanPhamThuongDangBanTrenGianHangDAO.XoaDanhSachSanPhamThuongTheoMaGianHang(magianhang);
        }

        public static bool XoaSanPhamThuongTheoMaSanPham(int masanpham)
        {
            return SanPhamThuongDangBanTrenGianHangDAO.XoaSanPhamThuongTheoMaSanPham(masanpham);
        }
    }
}
